import java.util.Random;

public class FundCalculate {
    public int gcd(int m, int n) {//求最大公因数
        return m%n==0 ? n : gcd(n, m%n);
    }
    public String yuefen(int m,int n){//分数约分
        FundCalculate f=new FundCalculate();
        int temp=f.gcd(m,n);
        m/=temp;
        n/=temp;
        String ca=String.valueOf(m)+"/"+String.valueOf(n);
        return ca;
    }
    public int decide(int x,int y){//判断是否整除
        Random random=new Random();
        if(x%y!=0){
            y=random.nextInt(100)+1;
            return decide(x,y);
        }
        else{
            return y;
        }
    }
}
